package com.healthcarex.hip.saas.security.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Transient;
import java.util.List;

/**
 * @author chenpan
 * @ClassName: UserWithRole
 * description:
 * @date 2018-04-02 14:36
 */
@Data
@ToString(callSuper = true)
@ApiModel(value = "UserWithRole", description = "用户信息(附角色、科室信息)",parent = SysUser.class)
public class UserWithRole extends SysUser {

    @Transient
    @ApiModelProperty(value = "角色集合")
    private List<SysRole> roles;

    @Transient
    @ApiModelProperty(value = "角色Id数组")
    private Integer[] roleIds;

    @Transient
    @ApiModelProperty(value = "所属科室集合")
    private List<SysDept> depts;
}
